package com.green.service.manage.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.green.dao.manage.PrivilegeRuleDao;
import com.green.model.manage.PrivilegeRule;
import com.green.service.common.impl.BaseServiceImpl;
import com.green.service.manage.PrivilegeRuleService;

@Repository("privilegeRuleService")
public class PrivilegeRuleServiceImpl extends BaseServiceImpl implements PrivilegeRuleService {
	@Autowired
	private PrivilegeRuleDao PrivilegeRuleDao;
	@Override
	public int insertPrivilegeRule(PrivilegeRule ct) {
		return PrivilegeRuleDao.insertPrivilegeRule(ct);
	}

	@Override
	public int updatePrivilegeRule(PrivilegeRule ct) {
		return PrivilegeRuleDao.updatePrivilegeRule(ct);
	}

	@Override
	public int deletePrivilegeRule(Map<String, Object> param) {
		return PrivilegeRuleDao.deletePrivilegeRule(param);
	}

	@Override
	public PrivilegeRule getPrivilegeRuleById(String id) {
		return PrivilegeRuleDao.getPrivilegeRuleById(id);
	}

	@Override
	public List<PrivilegeRule> getPrivilegeRuleList(Map<String, Object> param) {
		return PrivilegeRuleDao.getPrivilegeRuleList(param);
	}
	
	
}
